//
//  NewDetailTableViewCell.m
//  艾听歌
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NewDetailTableViewCell.h"
#import "NewDetailModel.h"

@implementation NewDetailTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.aImage = [[UIImageView alloc] init];

        [self.contentView addSubview:self.aImage];
        
        self.singerName = [[UILabel alloc] init];

        [self.contentView addSubview:self.singerName];
        
        self.number = [[UILabel alloc] init];

        [self.contentView addSubview:self.number];
        
        self.name = [[UILabel alloc] init];

        [self.contentView addSubview:self.name];
        
        self.button = [UIButton buttonWithType:UIButtonTypeCustom];

        [self.contentView addSubview:self.button];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.aImage.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 200);
    self.singerName.frame = CGRectMake(60, 10, 200, 30);
    self.number.frame = CGRectMake(10, 15, 40, 40);
    self.name.frame = CGRectMake(60, 45, 200, 20);
//    self.button.frame = CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
